package com.example.demo.client.vm.sysbasequery;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;

/**
 * @author tangrh
 */
@Alias("UserGroupVm")
@ApiModel("用户组基本信息")
public class UserGroupVm implements Serializable {
    private static final long serialVersionUID = -3797745235446711913L;
    @ApiModelProperty("ID")
    private Long id;
    @ApiModelProperty("用户组名称")
    private String groupName;
    @ApiModelProperty("父用户组ID")
    private Long parentId;
    @ApiModelProperty("父用户组名称")
    private String parentName;
    @ApiModelProperty("用户组类型")
    private Integer groupType;
    @ApiModelProperty("用户组全称")
    private String groupFullName;
    @ApiModelProperty("状态")
    private Integer status;
    @ApiModelProperty("创建人")
    private String createUserName;
    @ApiModelProperty("创建人id")
    private Long createUserId;
    @ApiModelProperty("创建时间")
    private String insertTime;
    @ApiModelProperty("修改时间")
    private String updateTime;
    @ApiModelProperty("描述")
    private String description;
    @ApiModelProperty("修改人")
    private String updateUserName;
    @ApiModelProperty("所属区域ID")
    private Long regionId;
    @ApiModelProperty("是否自己创建")
    private boolean createYourself = false;

    public Long getId() {
        return id;
    }

    public Long getParentId() {
        return parentId;
    }

    public String getParentName() {
        return parentName;
    }

    public String getGroupName() {
        return groupName;
    }

    public Integer getGroupType() {
        return groupType;
    }

    public String getGroupFullName() {
        return groupFullName;
    }

    public Integer getStatus() {
        return status;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public String getInsertTime() {
        return insertTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public String getDescription() {
        return description;
    }

    public String getUpdateUserName() {
        return updateUserName;
    }

    public Long getRegionId() {
        return regionId;
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public boolean isCreateYourself() {
        return createYourself;
    }

    public void setCreateYourself(boolean createYourself) {
        this.createYourself = createYourself;
    }

    @Override
    public String toString() {
        return "UserGroupVm{" +
            "id='" + id + '\'' +
            ", groupName='" + groupName + '\'' +
            ", parentId='" + parentId + '\'' +
            ", groupType=" + groupType +
            ", groupFullName='" + groupFullName + '\'' +
            ", status=" + status +
            ", createUserName='" + createUserName + '\'' +
            ", insertTime='" + insertTime + '\'' +
            ", updateTime='" + updateTime + '\'' +
            ", description='" + description + '\'' +
            ", updateUserName='" + updateUserName + '\'' +
            ", regionId=" + regionId +
            '}';
    }
}
